package com.hewep.view;

import java.io.File;

public class FileItem {
	private boolean open = false;
	private String parent;
	private String fileName;
	private boolean select = false;
	private File file;
	public FileItem(String parent, File file){
		this.parent = parent;
		this.file = file;
		this.fileName = file.getName();
	}
	public String getParent() {
		return parent;
	}
	public void setParent(String parent) {
		this.parent = parent;
	}
	public File getFile() {
		return file;
	}
	public void setFile(File file) {
		this.file = file;
	}
	public boolean isOpen() {
		return open;
	}
	public void setOpen(boolean open) {
		this.open = open;
	}
	public String getFileName() {
		return this.fileName;
	}
	
	public boolean isSelect() {
		return select;
	}
	public void setSelect(boolean select) {
		this.select = select;
	}
	@Override
	public String toString() {
		return this.file.getName();
	}
}
